package com.boot.demo.task;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import java.time.LocalDateTime;


@Component
public class TakCompont {

//    @Scheduled(cron = "*/5 * * * * *")
    public void task1(){
        try {
            Thread.sleep(100);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        System.err.println(LocalDateTime.now());
    }
}
